package com.yipinhouse.backstage.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.backstage.client.param.ShopParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "shopManageBackClient",name="backstage",path = "backstage")
public interface BackstageManageClient {

    /**
     * 添加门店
     * @param param
     * @return
     */
    @PostMapping("addShop")
    public Result addShop(@RequestBody ShopParam param);



}
